import {ApiProperty} from "@nestjs/swagger";
import {ArrayMinSize, IsArray, IsDefined, IsNotEmpty, IsNumber, IsString, ValidateNested} from "class-validator";
import {Type} from "class-transformer";

export class StaffTagSaveDto {
  // 标签名称、标签描述、标签状态
  @ApiProperty({description: '标签名称'})
  @IsDefined()
  @IsString({message: '标签名称必须是字符串'})
  @IsNotEmpty({message: '标签名称不能为空'})
  name: string;

  @ApiProperty({description: '标签描述'})
  @IsDefined()
  @IsString({message: '标签描述必须是字符串'})
  @IsNotEmpty({message: '标签描述不能为空'})
  description: string;

  @ApiProperty({description: '标签状态'})
  @IsDefined()
  @Type(() => Number)
  @IsNumber({}, {message: '标签状态必须是数字'})
  status: number;
}

export class StaffTagDelDto {
  @ApiProperty({description: '咨询师标签ID', type: Number, required: true})
  @IsDefined()
  @Type(() => Number)
  @IsNumber({}, { message: '咨询师标签ID必须为数字' })
  id: number
}
